package com.test.ch01;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class Animal {
    public int age=10;
    public String name="animal";
    //final int a=10;
    /*public Animal(){

    }*/
    public static int count=0;
    static{
        System.out.println("animal::static");
        count=1;
    }
    {
        System.out.println("animal::haha");
    }
    public Animal(int age,String name){
        this.age=age;
        this.name=name;
        System.out.println("animal::Animal");
    }
    {
        System.out.println("animal::hehe");
    }
    public void eat(){
        System.out.println(name+"eat...");
    }
    public float a(){
        return 1.2f;
    }
}
